#ifndef LEAVEAPPROVEDWIDGET_H
#define LEAVEAPPROVEDWIDGET_H

#include <QWidget>
#include <QSqlTableModel>

namespace Ui {
class LeaveApprovedWidget;
}

class LeaveApprovedWidget : public QWidget
{
    Q_OBJECT

public:
    explicit LeaveApprovedWidget(QWidget *parent = 0);
    ~LeaveApprovedWidget();

private slots:
    void on_btn_pass_clicked();

    void on_btn_fail_clicked();

private:
    Ui::LeaveApprovedWidget *ui;
    QSqlTableModel *model;
    void initWindow(); //初始化窗体
    void initTable(); //初始化Table
};

#endif // LEAVEAPPROVEDWIDGET_H
